package com.jiazhong.example.project.bookstore.commons.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;

@Data
public class Category implements Serializable {

    private String id;
    private String name;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime;
    @TableLogic(delval = "1", value = "0")
    private Integer isDeleted; // 逻辑删除字段 1删除 0未删除(默认)
    private Integer status;
}
